 package com.oanda.blackberry.util;
 
 import net.rim.device.api.util.Persistable;
 
 public class UserSettings
   implements Persistable
 {
   int index;
   boolean save;
   String username;
   String password;
   String sessionToken;
 
   public UserSettings(int index, String username, String password, boolean save)
   {
     this.index = index;
     this.username = username;
     this.password = password;
     this.save = save;
   }
 
   public int getIndex() {
     return this.index;
   }
 
   public String getSessionToken() {
     return this.sessionToken;
   }
 
   public String getPassword() {
     return this.password;
   }
 
   public String getUsername() {
     return this.username;
   }
 
   public int getUsernameLength() {
     if (this.username == null) {
       return -1;
     }
     return this.username.length();
   }
 
   public int getPasswordLength()
   {
     if (this.password == null) {
       return -1;
     }
     return this.password.length();
   }
 
   public boolean isSave()
   {
     return this.save;
   }
}

